package com.zhanghe.study.spring4.beans.aoptest;

import com.zhanghe.study.spring4.beans.aoptest.cglib.SystemLog;
import org.springframework.stereotype.Component;

/**
 * @author zh
 * @date 2021/1/5 17:52
 */
@Component("myInterface")
public class MyInterfaceImpl implements MyInterface{

//    @Autowired
//    private TestC testC;

    @Override
    @SystemLog
    public String log(String param) {
        System.out.println("开始打印日志");
        test();
        return "success";
    }

    @SystemLog
    public void test(){
        System.out.println("test");
    }
}
